﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using NewtifyMe.Business;
using NewtifyMe.ParseFeeds;
using FeedSource = NewtifyMe.DataTypes.FeedSource;

using Alg = Newtify.Heuristic;



namespace LetMeKnow
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private String _url = "http://feeds.feedburner.com/PublicoDesporto?format=xml";

        private void button1_Click(object sender, EventArgs e)
        {

            List<FeedSource> list =  NewtifyMe.Business.FeedSource.GetAllFeedSource();

            NewtifyMe.Interfaces.IFeedParse parse = new Alg.ParseFeeds();
            dataGridView1.DataSource =  parse.ParseAllFeeds(list[0]);

        }
    }
}
